// --------------------------------------------------------------------------------
//
// GA Purse Expenses Manager
// Madrid, Spain
//
// --------------------------------------------------------------------------------
//  This file is part of Purse EM.
//
//  Purse EM isfree software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  Purse EM is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
//
// --------------------------------------------------------------------------------
//
// System : purse
// Sub-System : es.ga.purse.main
// File Name : ExpensesCategories.java
//
// Author : gonzalo
// Creation Date : Oct 14, 2011
//
// --------------------------------------------------------------------------------
package es.ga.purse.main;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import lombok.Getter;
import lombok.Setter;

import org.hibernate.annotations.Entity;
import org.hibernate.annotations.Table;

/**
 * @author gonzalo
 *
 */
@Entity
@Table( appliesTo = ExpensesCategory.TABLE_NAME )
public class ExpensesCategory implements Serializable {

	private static final long serialVersionUID = 2090082842455433099L;
	
	public static final String TABLE_NAME = "categories";
	
	@Getter @Setter @Id @GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", updatable = false, nullable = false)
	private Long id;
	
	@Getter @Setter @Column(name = "name")
	private String name;
	
	@Getter @Setter @Column(name = "type")
	private Integer type;

}
